﻿#include "ZoneMergeDescEx.h"

#include "DescStore/ZoneMergeZoneMergeDesc.h"

ZoneMergeDescEx::ZoneMergeDescEx()
{
	if (EN_OBJ_MODE_INIT == NFShmMgr::Instance()->GetCreateMode()) {
		CreateInit();
	}
	else {
		ResumeInit();
	}
}

ZoneMergeDescEx::~ZoneMergeDescEx()
{
}

int ZoneMergeDescEx::CreateInit()
{
	return 0;
}

int ZoneMergeDescEx::ResumeInit()
{
	return 0;
}

int ZoneMergeDescEx::Load()
{
	return 0;
}

int ZoneMergeDescEx::CheckWhenAllDataLoaded()
{
	return 0;
}

int ZoneMergeDescEx::GetMergeZoneId(int zoneId)
{
    auto pDesc = ZoneMergeZoneMergeDesc::Instance()->GetDesc(zoneId);
    if (pDesc)
    {
        return pDesc->main_zone_id;
    }
    return zoneId;
}
